package com.example.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

import com.example.model.req.UploadTransferReq;

@Mapper
public interface TransferMapper {
    @Insert("insert into tb_transfer(orderId, amount, transferPic, fromUserId, toUserId, status, transferTime) values(#{orderId}, #{amount}, #{transferPic}, #{fromTo}, #{transferTo}, 'pending', CURRENT_TIMESTAMP)")
    int addTransfer(UploadTransferReq uploadTransfer);
}
